#pragma once
#ifndef SDEF_GAMESCENE
#define SDEF_GAMESCENE

#include "Scene.h"
#include <SypX/SypX.h>

namespace SheepDefence
{
	class Level;
	class GameScene : public Scene
	{
	public:
		//The font loaded in the prior scene is passed in to reduce load time
		GameScene(SypX::Font* f, int level, int breed, int highscore);
		~GameScene(void);
		virtual void init();
		virtual void run();
		virtual void handleInput();
		void calcAndDrawFPS();
		//GameOver screen
		void gameOver();
	private:
		SypX::Canvas* canvas;
		SypX::Renderer* render;
		SypX::Engine* engine;
		SypX::Font* font;
		SypX::TextBox* tBox;

		int lvl, breed, highscore;
		Level* level;
		bool mouseDown;
		
		float cumTime;
		SypX::UShort fps;
		SypX::UShort counter;
		
	};
}
#endif